package com.perdragon.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.perdragon.entity.Educate;
import com.perdragon.repository.EducateRepository;
import com.perdragon.service.EducateService;

@Service
public class EducateServiceImpl implements EducateService {
	@Autowired
	private EducateRepository educateRepository;

	public List<Educate> listEducate(int startRow) {
		return educateRepository.listEducate(startRow);
	}

	public List<Educate> listEducateFinished(int startRow) {
		return educateRepository.listEducateFinished(startRow);
	}

	public int addEducate(Educate educate) {
		return educateRepository.addEducate(educate);
	}

	public void delete(int id) {
		educateRepository.delete(id);
	}

	public Educate selectById(int id) {
		return educateRepository.selectById(id);
	}

	public void toFinished(Educate educate) {
		educateRepository.toFinished(educate);
	}

	public int getRowNum() {
		return educateRepository.getRowNum();
	}

	public int getRowNumFinished() {
		return educateRepository.getRowNumFinished();
	}
}
